package com.aiyige.page.webview.event;

import com.aiyige.page.webview.model.PreloadTask;

public class EventPreload {
    PreloadTask task;

    public EventPreload() {
    }

    private EventPreload(Builder builder) {
        setTask(builder.task);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public PreloadTask getTask() {
        return task;
    }

    public void setTask(PreloadTask task) {
        this.task = task;
    }

    public static final class Builder {
        private PreloadTask task;

        private Builder() {
        }

        public Builder task(PreloadTask val) {
            task = val;
            return this;
        }

        public EventPreload build() {
            return new EventPreload(this);
        }
    }
}
